﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="LoadVoucher.aspx.cs" Inherits="MMITMobi.Transactions.LoadVoucher" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <script type="text/javascript">
    $(document).ready(function () {
        $('#ukash').hide();
        $('#mmit').hide();

        $('#drpVouchers').bind('change', function (e) {
            var id = $('#drpVouchers').val();
           // alert(id);
            switch (id) {
                case '1':
                    $('#ukash').show('slow');
                    $('#mmit').hide();
                    break;
                case '2':
                    $('#ukash').hide();
                    $('#mmit').show('slow');
                    break;
                default:
                    break;
            }
        });
    });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div data-role="content" style="padding: 15px">
        <div id="response" runat="server">
        </div>
        <div id="">
            <label for="drpVouchers">       
                <select id="drpVouchers">
                    <option value="0">Select Voucher</option>
                    <option value="1">Ukash Voucher</option>
                    <option value="2">MMIT Voucher</option>
                </select>
            </label>
        </div>
        <div id="ukash">
                PIN<label for="txtVoucher">: <span></span></label>
                <asp:TextBox ID="txtUkashPIN" runat="server"></asp:TextBox>
                <label for="txtVoucher">Amount: <span></span></label> <asp:TextBox ID="txtAmount" runat="server"></asp:TextBox>
                <label for="drpCurrencies">Currency:       
                <span><asp:DropDownList ID="drpCurrencies" runat="server">
                </asp:DropDownList>
                </span>
            </label>
            <label>Wallet:<span><select id="drpWallets"></select></span></label>
        </div>
        <div id="mmit">
                <label for="txtVoucher">PIN: <span></span></label> <asp:TextBox ID="txtMMITPIN" runat="server"></asp:TextBox>
        </div>
                <label for="btnSubmit"><span></span> 
                    <asp:Button ID="btnSubmit" runat="server" Text="Submit" 
            onclick="btnSubmit_Click" />    
                </label>                      
    </div>
</asp:Content>
